package com.kmxd.ams.client.use.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 收藏夹表
 *
 * @author nickbi
 * @since 2023-01-11
 */
@Data
@Schema(description = "收藏夹表对象")
public class UseFavoritesVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "用户id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  @Schema(description = "所属部门id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long deptId;

  @Schema(description = "档案id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archId;

  @Schema(description = "公司id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  @Schema(description = "全宗id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long fondsId;

  @Schema(description = "档案类型id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archTypeId;

  @Schema(description = "档案表名")
  private String tableId;

  @Schema(description = "档号")
  private String archCode;

  @Schema(description = "题名")
  private String archTitle;

  @Schema(description = "密级")
  private String security;

  @Schema(description = "年度")
  private Integer year;

  @Schema(description = "文号")
  private String docNumber;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @Schema(description = "删除状态(0-正常,1-已删除)")
  private Long delFlag;
}
